Skip to main content

All Questions

2votes
1answer
162views

Java program for complex math utilities

I've got 2 Java programs, with the aim of solving some matrix math that involves complex numbers (an EE problem). Both programs have main functions, the one with all the complex math operations has a ...
Aloy's user avatar
1vote
1answer
147views

Interconnect Recipe and Notes

I'm currently working through a tutorial. The project is a recipe website. One of the lessons to "save some lines of code" and use bidirectional setters for bidirectional relations of ...
Benjamin Basmaci's user avatar
1vote
1answer
482views

Model animals using inheritance in Java

I was assigned the following problem: You've gone back in time to 500BC Athens and Socrates wants you to build him an app to help classify animals. Build the classes ...
apex2022's user avatar
1vote
1answer
64views

Android APP user registration page implementation

This is a follow-up question for Android APP User class implementation. I am attempting to build a user registering system and this post shows the user registration page implementation. The ...
JimmyHu's user avatar
  • 7,068
1vote
1answer
78views

Android APP Password Strength Assessment class implementation

This is a follow-up question for Android APP User class implementation. I am attempting to create a password strength assessment class which is named ...
JimmyHu's user avatar
  • 7,068
0votes
1answer
77views

Android APP User class implementation

This is a follow-up question for Android app class serialization. The implementation of User class has been updated and the functionality of null string checking, ...
JimmyHu's user avatar
  • 7,068
0votes
1answer
423views

Unit tests for User class with JUnit 5

This is a follow-up question for Android app class serialization. Some problems have been mentioned in forsvarir's answer. Then, I am following JUnit 5 User Guide to redesign the test cases for ...
JimmyHu's user avatar
  • 7,068
4votes
2answers
2kviews

Should I create an abstract runnable? I've 4 sub-classes which perform similar work but only 3 of them have identical constructors

I've added the code for an abstract thread class and 2 sub-classes. The structure and job of the threads (sub-classes) is identical except one difference: ONE of ...
user1071840's user avatar
5votes
1answer
1kviews

Improving an IRC bot

I've recently started working on a java project, and the main purpose of it is to get better at Java. I've decided to make an IRC bot for twitch. But after some hours of progress I already see my Bot ...
Kaaz's user avatar
6votes
2answers
334views

Reorganize a maze game from one large class into smaller classes

I'm new to Java and I really don't understand how to make more classes work like one. So if anybody could explain and help me divide my large code into smaller classes (like Player.java, Main.java, ...
Jollyfreak's user avatar
8votes
4answers
36kviews

Random password generator

I just wrote my first Java class, and I wanted to share it with you and maybe get some quick check from more experiences coders than I am. I want to learn OOP, and Java is just the tool I thought was ...
doplumi's user avatar
3votes
2answers
175views

Subclassing or not?

I have a class called Foo ...
Premraj's user avatar

close